<?php get_header();?>
<?php get_menu();?>
<!-- start content-outer -->
<div id="content-outer">
<!-- start content -->
<div id="content">


<div id="page-heading"><h1>Actualizar Usuario</h1></div>

<?php //echo validation_errors(); ?>

<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
<tr>
	<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
	<th class="topleft"></th>
	<td id="tbl-border-top">&nbsp;</td>
	<th class="topright"></th>
	<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
</tr>
<tr>
	<td id="tbl-border-left"></td>
	<td>
	<!--  start content-table-inner -->
	<div id="content-table-inner">
	
	<table border="0" width="100%" cellpadding="0" cellspacing="0">
	<tr valign="top">
	<td>
	
	
		<!--  start step-holder -->
		<!--<div id="step-holder">
			<div class="step-no">1</div>
			<div class="step-dark-left"><a href="">Crear Usuario</a></div>
			<div class="step-dark-right">&nbsp;</div>
			<div class="step-no-off">2</div>
			<div class="step-light-left">Select related products</div>
			<div class="step-light-right">&nbsp;</div>
			<div class="step-no-off">3</div>
			<div class="step-light-left">Preview</div>
			<div class="step-light-round">&nbsp;</div>
			<div class="clear"></div>
		</div>-->
		<!--  end step-holder -->
	
		<!-- start id-form -->
<?php echo form_open('accounts/update', array('class' => 'email', 'id' => 'miformulario'));?>
		<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
		<tr>
			<th valign="top">Nombre Completo:</th>
			<td><input type="text" class="inp-form-error" id="nombre" name="nombre" value="<?php echo set_value('nombre', $nombre); ?>"/></td>
			<td><?php echo form_error('nombre'); ?></td>
		</tr>
		<tr>
			<th valign="top">Login:</th>
			<td><strong><?php echo set_value('login', $login); ?></strong></td>
			<td>&nbsp;
			
			</td>
		</tr>
		<tr>
			<th valign="top">Password:</th>
			<td><input type="text" class="inp-form-error" id="password" name="password" /></td>
			<td>
			<?php echo form_error('password'); ?>
			</td>
		</tr>
		<tr>
			<th valign="top">Repetir password:</th>
			<td><input type="text" class="inp-form-error" id="password_repeat" name="password_repeat"/></td>
			<td>
			<?php echo form_error('password_repeat'); ?>
			</td>
		</tr>
		<tr>
			<th valign="top">Email:</th>
			<td><input type="text" class="inp-form-error" id="email" name="email" value="<?php echo set_value('email', $email); ?>"/></td>
			<td>
			<?php echo form_error('email'); ?>
			</td>
		</tr>		
		<tr>
		<th valign="top">Tipo de usuario:</th>
		<td>	
		<select  class="styledselect_form_1" id="tipo_usuario" name="tipo_usuario">
			<?php $default_select = ($tipo_usuario == "cliente")?TRUE:FALSE; ?>
			<option value="cliente" <?php echo set_select('tipo_usuario', 'cliente', $default_select); ?>>Cliente</option>
			<?php $default_select = ($tipo_usuario == "equipo")?TRUE:FALSE; ?>
			<option value="equipo" <?php echo set_select('tipo_usuario', 'equipo', $default_select); ?>>Equipo</option>
			<?php $default_select = ($tipo_usuario == "administrador")?TRUE:FALSE; ?>
			<option value="administrador" <?php echo set_select('tipo_usuario', 'administrador', $default_select); ?>>Administrador</option>			
		</select>
		</td>
		<td></td>
		</tr>
		<tr>
		<th valign="top">Estatus:</th>
		<td>	
		<select  class="styledselect_form_1" id="status" name="status">
			<?php $default_select = ($status == "activo")?TRUE:FALSE; ?>
			<option value="activo" <?php echo set_select('status', 'activo',$default_select); ?>>Activo</option>
			<?php $default_select = ($status == "inactivo")?TRUE:FALSE; ?>
			<option value="inactivo" <?php echo set_select('status', 'inactivo', $default_select); ?>>Inactivo</option>			
		</select>
		</td>
		<td></td>
		</tr> 
		<tr>
		<th>&nbsp;</th>
		<td valign="top">
			<input type="hidden" id="id_usuario" name="id_usuario" value="<?php echo $id_usuario;?>" /> 
			<input type="submit" id="submit" name="submit" value="submit" class="form-submit" />
			<input type="submit" id="cancel" name="cancel" value="cancel" class="form-reset"  />
		</td>
		<td></td>
	</tr>
	</table>
</form>	
	<!-- end id-form  -->

	</td>
	<td>

	<!--  start related-activities -->
	<div id="related-activities">
		
		<!--  start related-act-top -->
		<div id="related-act-top">
		<img src="images/forms/header_related_act.gif" width="271" height="43" alt="" />
		</div>
		<!-- end related-act-top -->
		
		<!--  start related-act-bottom -->
		<div id="related-act-bottom">
		
			<!--  start related-act-inner -->
			<div id="related-act-inner">
			
				<div class="left"><a href=""><img src="images/forms/icon_plus.gif" width="21" height="21" alt="" /></a></div>
				<div class="right">
					<h5>Add another product</h5>
					Lorem ipsum dolor sit amet consectetur
					adipisicing elitsed do eiusmod tempor.
					<ul class="greyarrow">
						<li><a href="">Click here to visit</a></li> 
						<li><a href="">Click here to visit</a> </li>
					</ul>
				</div>
				
				<div class="clear"></div>
				<div class="lines-dotted-short"></div>
				
				<div class="left"><a href=""><img src="images/forms/icon_minus.gif" width="21" height="21" alt="" /></a></div>
				<div class="right">
					<h5>Delete products</h5>
					Lorem ipsum dolor sit amet consectetur
					adipisicing elitsed do eiusmod tempor.
					<ul class="greyarrow">
						<li><a href="">Click here to visit</a></li> 
						<li><a href="">Click here to visit</a> </li>
					</ul>
				</div>
				
				<div class="clear"></div>
				<div class="lines-dotted-short"></div>
				
				<div class="left"><a href=""><img src="images/forms/icon_edit.gif" width="21" height="21" alt="" /></a></div>
				<div class="right">
					<h5>Edit categories</h5>
					Lorem ipsum dolor sit amet consectetur
					adipisicing elitsed do eiusmod tempor.
					<ul class="greyarrow">
						<li><a href="">Click here to visit</a></li> 
						<li><a href="">Click here to visit</a> </li>
					</ul>
				</div>
				<div class="clear"></div>
				
			</div>
			<!-- end related-act-inner -->
			<div class="clear"></div>
		
		</div>
		<!-- end related-act-bottom -->
	
	</div>
	<!-- end related-activities -->

</td>
</tr>
<tr>
<td><img src="images/shared/blank.gif" width="695" height="1" alt="blank" /></td>
<td></td>
</tr>
</table>
 
<div class="clear"></div>
 

</div>
<!--  end content-table-inner  -->
</td>
<td id="tbl-border-right"></td>
</tr>
<tr>
	<th class="sized bottomleft"></th>
	<td id="tbl-border-bottom">&nbsp;</td>
	<th class="sized bottomright"></th>
</tr>
</table>









 





<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer -->

 

<div class="clear">&nbsp;</div>
    <?php get_footer();?>